//该文件专门用于整个应用的路由器
import VueRouter from 'vue-router'
//引入组件
import About from '../pages/About.vue'

import Home from '../pages/Home.vue'
//引入路由器


//创建并暴露路由实例
export default new VueRouter({
    routes: [
        {
            path: '/about',
            component: About
        },
        {
            path: '/home',
            component: Home
        }
    ]
})